import { IntersectionType } from '@nestjs/mapped-types';
import { PageSize } from '../../dto/all-dto';
import { IsOptional } from 'class-validator';
import { Type } from 'class-transformer';

export class FindGoodDto extends  IntersectionType(PageSize){
  @IsOptional()
  name : string;

  @IsOptional()
  @Type(()=>Number)
  status: number

  @IsOptional()
  @Type(()=>Number)
  specType: number

}